﻿<navigation:Page x:Class="Test.Scenes.Rtb" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Rtb Page">
    <RichTextBox x:Name="LayoutRoot" Loaded='LayoutRoot_Loaded' IsReadOnly='True'>
        <Paragraph >
            <Run Foreground='Black' FontSize='20' Text='hello world' FontWeight='Normal'/>
            <LineBreak/> 
            <Run Foreground='Red' FontSize='18' Text='hello world' FontWeight='Bold'/> 
            <Run Foreground='Green' FontSize='16' Text='hello world' FontWeight='Normal'/>
            <LineBreak/> 
            <Hyperlink Command='{Binding}' CommandParameter='{Binding}' NavigateUri='http://www.qq.com' TargetName='_blank'>
                <Run Foreground='Black' FontSize='12' Text='hello qq' FontWeight='Normal'/>
            </Hyperlink>
        </Paragraph> 
    </RichTextBox>
</navigation:Page>
